package com.hery.master;

import com.hery.config.ConfigFactory;
import com.hery.core.NettyServer;


public class Server {
	private ConfigFactory config;
	private static final String MASTER_PORT="master.port";
	private static String DEFAULT_PORT="9099";
	private int port=0;
	public Server(){
		port=Integer.parseInt(config.getProperties(MASTER_PORT, DEFAULT_PORT));
	}
	public void start() throws Exception {
		new NettyServer(port);
		
	}
}
